import Vue from 'vue'
import Router from 'vue-router'
import Login from "@/components/Login";
import Home from "@/components/Home";
import DataView from "@/components/View/DataView";

Vue.use(Router)

export default new Router({
  mode:'history',
  routes: [
    {path: '/',redirect:'/login'},
    {path:'/login',name:'Login',component:Login},
    {path: '/home',name: 'Home',component: Home,meta: {requireAuth: true}},
    {path: '/data',name:'DataView',component: DataView}
  ]
})
